package com.qf.serivce.Impl;

import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import com.qf.serivce.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserserviceImpl implements UserService {
    @Resource
    private UserMapper usermapper;

    @Override
    public User findUserByTel(String tel) {
        User user1 = usermapper.findUserByName(tel);
        return user1;
    }
    @Override
    public boolean insertService(User user) {
        int i = usermapper.insertOne(user);
        if (i>-1){
            return true;
        }else {
            return false;
        }
    }
}
